import React, {Component} from 'react';
import {back, locationTo} from "../utils/LocationUtil";
import * as locations from "../const/locations";

class Error extends Component {
    static propTypes = {};

    render() {
        return (
            <div style={{textAlign: 'center', marginTop: '200px'}}>
                <p style={{marginBottom: '20px', fontWeight: 700}}>
                    sorry..服务器请求出错。
                </p>
                <p>
                    <span style={{textDecoration: 'underline'}}
                      onClick={() => {
                          locationTo(locations.LOGIN)
                      }}>点此返回登录页 </span>
                    <span style={{textDecoration: 'underline'}}
                          onClick={() => {
                              back()
                          }}>或返回上一步</span>
                </p>
            </div>
        );
    }
}

export default Error
